import * as React from 'react';
import {
  PureComponent,
  PropTypes
} from 'react';
import {findDOMNode} from 'react-dom';
import {Editor, EditorState, RichUtils, Modifier, Entity, CompositeDecorator} from 'draft-js';
import {Link, findLinkEntities} from './link';
import {Image, findImageEntities} from './image';


const decorator = new CompositeDecorator([
  {
    strategy: findLinkEntities,
    component: Link
  },

  {
    strategy: findImageEntities,
    component: Image
  }
]);

export default decorator;